class A{
   int a=6;
   public int fun(){
	   return(a);
   }
}
class B{
	int a=7;
	}
    class Exam{     
        public static void main (String args[ ]) { 
        	A a=new A();System.out.println(a.fun());
            B b=new B();
        	System.out.println("Hello Java\n"+a.a+b.a);
     }
}